package com.edu.whty.dao;


import com.edu.whty.entity.base.AttachFile;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @desc	资源附件表DAO接口类
 * @author	
 * @date	2014-5-7
 */
@Repository
@Mapper
public interface AttachFileDao {


    /**
     * 查询单条记录
     * @param fid
     * @return
     * @throws Exception
     */
    AttachFile selectOne(Long fid) ;

    /**
     * 插入
     * @param model
     * @throws Exception
     */
    Long insertOne(AttachFile model) throws Exception;

    /**
     * 更新
     * @param model
     * @throws Exception
     */
    void updateOne(AttachFile model) throws Exception;



    List<AttachFile> getAttachFileIsLocal() throws Exception;

    List<AttachFile> getAttachFileIsCloud() throws Exception;


    List<AttachFile> getAttachFileByOrgId(String orgId) throws Exception;
}
